if (!isObject(DotCollisionBehavior)) {
   %template = new BehaviorTemplate(DotCollisionBehavior);
   
   %template.friendlyName = "Dot Collision Behavior";
   %template.behaviorType = "Recibe Colision";
   %template.description  = "Colision para los dots del juego";
}

function DotCollisionBehavior::eat(%this, %assailant) {
   %this.owner.safeDelete();
}

function DotCollisionBehavior::dontCollide(%this, %assailant) {
	%this.owner.collisionActiveReceive = false;
	%this.owner.schedule(3000, "receiveCollision");
}

function DotCollisionBehavior::receiveCollision(%this) {
   %this.owner.collisionActiveReceive = true;
}

function DotCollisionBehavior::onCollision(%this, %dstObj, %srcRef, %dstRef, %time, %normal, %contactCount, %contacts) {
	/*%element = %srcRef.getBehavior("PacmanCollisionBehavior");
	if (isObject(%element)) {
		%this.eat();
	}*/
}